/*
 * @Project Name: spring-boot
 * @File Name: UserService
 * @Package Name: com.hhly.spring.boot.cache
 * @Date: 2017/12/13 17:52
 * @Creator: linshixing-1199
 * @line------------------------------
 * @修改人:
 * @修改时间:
 * @修改内容:
 */

package com.sm.shoplook.service.base;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.sm.shoplook.domain.base.Material;
import com.sm.shoplook.vo.base.ApiException;
import com.sm.shoplook.vo.base.ApiResult;
import com.sm.shoplook.vo.base.material.req.MaterialSearchReqVo;
import com.sm.shoplook.vo.base.material.resp.MaterialRespVo;

/**
 * @author chenpy-1072
 * @desc 基础素材管理
 * @date 2018/08/13
 * @see
 */
public interface MaterialService {

	ApiResult<PageInfo<MaterialRespVo>> selectMaterialsPage(MaterialSearchReqVo materialSearchReqVo);

	ApiResult deleteMaterials(String[] idList) throws ApiException;

	ApiResult saveMaterial(Material material) throws ApiException;

	ApiResult<List<Material>> selectAllMaterials();

	ApiResult<MaterialRespVo> selectMaterialById(Integer id);

	ApiResult<List<Material>> selectMaterialsByIds(List<Integer> ids);

    ApiResult<List<Material>> selectMaterialsByCategoryId(Integer categoryId);
}
